/*    */ package com.cr.business.service.impl;
/*    */ 
/*    */ import com.cr.business.domain.CrSourceEntrustment;
/*    */ import com.cr.business.mapper.CrSourceEntrustmentMapper;
/*    */ import com.cr.business.service.ICrSourceEntrustmentService;
/*    */ import com.cr.common.core.text.Convert;
/*    */ import com.cr.common.utils.MyDateUtils;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ @Service
/*    */ public class CrSourceEntrustmentServiceImpl implements ICrSourceEntrustmentService {
/*    */   @Autowired
/*    */   private CrSourceEntrustmentMapper crSourceEntrustmentMapper;
/*    */   
/*    */   public CrSourceEntrustment selectCrSourceEntrustmentByEntrustId(Long entrustId) {
/* 33 */     return this.crSourceEntrustmentMapper.selectCrSourceEntrustmentByEntrustId(entrustId);
/*    */   }
/*    */   
/*    */   public List<CrSourceEntrustment> selectCrSourceEntrustmentList(CrSourceEntrustment crSourceEntrustment) {
/* 45 */     return this.crSourceEntrustmentMapper.selectCrSourceEntrustmentList(crSourceEntrustment);
/*    */   }
/*    */   
/*    */   public int insertCrSourceEntrustment(CrSourceEntrustment crSourceEntrustment) {
/* 57 */     crSourceEntrustment.setCreateTime(MyDateUtils.getNowDate());
/* 58 */     return this.crSourceEntrustmentMapper.insertCrSourceEntrustment(crSourceEntrustment);
/*    */   }
/*    */   
/*    */   public int updateCrSourceEntrustment(CrSourceEntrustment crSourceEntrustment) {
/* 70 */     crSourceEntrustment.setUpdateTime(MyDateUtils.getNowDate());
/* 71 */     return this.crSourceEntrustmentMapper.updateCrSourceEntrustment(crSourceEntrustment);
/*    */   }
/*    */   
/*    */   public int deleteCrSourceEntrustmentByEntrustIds(String entrustIds) {
/* 83 */     return this.crSourceEntrustmentMapper.deleteCrSourceEntrustmentByEntrustIds(Convert.toStrArray(entrustIds));
/*    */   }
/*    */   
/*    */   public int deleteCrSourceEntrustmentByEntrustId(Long entrustId) {
/* 95 */     return this.crSourceEntrustmentMapper.deleteCrSourceEntrustmentByEntrustId(entrustId);
/*    */   }
/*    */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\service\impl\CrSourceEntrustmentServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */